]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Use Util.spawn rather then Shell.Process
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 17 Jan 2011 22:05:30 +0000 (23:05 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 17 Jan 2011 22:11:06 +0000 (23:11 +0100)
Shell.Process has been removed in favor of Util.spawn* so use that
instead.

js/ui/search.js

index 926abb72c8bce1a740a0e4d436f7d5fb0f3957a1..f7be6af4715ec8074ad199c47b5a41d08c7a670f 100644 (file)
@@ -5,6 +5,7 @@ const GLib = imports.gi.GLib;
 const Lang = imports.lang;
 const Signals = imports.signals;
 const Shell = imports.gi.Shell;
+const Util = imports.misc.util;
 
 const Gettext = imports.gettext.domain('gnome-shell');
 const _ = Gettext.gettext;
@@ -278,8 +279,7 @@ OpenSearchSystem.prototype = {
         } catch (e) {
             // TODO: remove this after glib will be removed from moduleset
             // In the default jhbuild, gio is in our prefix but gvfs is not
-            let p = new Shell.Process({ 'args' : ['gvfs-open', url] });
-            p.run();
+            Util.spawn(['gvfs-open', url])
         }
 
         Main.overview.hide();